Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
O
Ocarina
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • TASTE
  • Ocarina
  • Issues
  • #3

Closed
Open
Opened Feb 23, 2017 by Miguel Muñoz Arancón@marancon

Tcl error in taste-generate-skeletons

A Tcl error occurs when running taste-generate-skeletons, in the case that the DataView.aadl file contains Source_Text values that point to unexisting files.

This happens, for instance, when a model is moved to a different folder.

The same error also occurs when running taste-edit-project, and the editor crashes.

Example: test-move.tgz

assert@tastevm:~/tmp/test-move/moved$ taste-generate-skeletons 
[INFO] Converting interface view from V2 to V1.3
couldn't open "/home/assert/tmp/test-move/orig/DataView.asn": no such file or directory
    while executing
"open "$pFilename" r"
    (procedure "displayASNFile2" line 2)
    invoked from within
"displayASNFile2 [lindex $asnFiles 0]"
    (procedure "DataViewHMI::loadDataViewFile" line 162)
    invoked from within
"$loadingCommand $loadingCommandData"
    (procedure "loadFile2" line 22)
    invoked from within
"loadFile2 $pDataClass [list "fileName" [Parameter::getParameter $pData "fileName"] "context" $context ] "
    (procedure "FileManager::loadFile" line 36)
    invoked from within
"$function $pClass $pData"
    (procedure "ServiceManager::dispatch" line 28)
    invoked from within
"ServiceManager::dispatch $eventType $eventClass $eventData "undo""
    (procedure "Scheduler::FIFOEventScheduler" line 8)
    invoked from within
"Scheduler::FIFOEventScheduler"
    (procedure "EventManager::addEvent" line 17)
    invoked from within
"EventManager::addEvent "" "0" $service "" $eventData"
    (procedure "API::Kernel::loadFile" line 9)
    invoked from within
"API::Kernel::loadFile $filename $context"
    (procedure "API::HMI::loadUI" line 59)
    invoked from within
"API::HMI::loadUI $dataviewPath dataview"
    (procedure "::InterfaceViewHMI::loadIV" line 27)
    invoked from within
"$loadingCommand $loadingCommandData"
    (procedure "loadFile2" line 22)
    invoked from within
"loadFile2 $pDataClass [list "fileName" [Parameter::getParameter $pData "fileName"] "context" $context ] "
    (procedure "FileManager::loadFile" line 36)
    invoked from within
"$function $pClass $pData"
    (procedure "ServiceManager::dispatch" line 28)
    invoked from within
"ServiceManager::dispatch $eventType $eventClass $eventData "undo""
    (procedure "Scheduler::FIFOEventScheduler" line 8)
    invoked from within
"Scheduler::FIFOEventScheduler"
    (procedure "EventManager::addEvent" line 17)
    invoked from within
"EventManager::addEvent "" "0" $service "" $eventData"
    (procedure "API::Kernel::loadFile" line 9)
    invoked from within
"API::Kernel::loadFile [file normalize $ivfilename ] "interfaceview""
    (procedure "TasteHMI::Constructor" line 313)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "LaunchTaste" line 1)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    (procedure "main" line 1)
    invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
    invoked from within
"tbcload::bceval {
TclPro ByteCode 2 0 1.7 8.4
24 0 204 41 0 0 172 0 7 24 24 -1 -1
204
w0E<!(H&s!2fSs!&-<<!,Ki<!5Apiw2o=6#oGGd8.EW<!,c8=!2iA=!3oJ=!7/Ts..."
    (file "/home/assert/tool-src/ellidiss/v2/TASTE-linux/bin/TASTE/lib/application/mainTaste.tcl" line 8)
    invoked from within
"source      $startup"
    (file "/home/assert/tool-src/ellidiss/v2/TASTE-linux/bin/TASTE/main.tcl" line 38)
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: taste/ocarina#3