error 'unknown Identifier: Matrix'

Post

Posted
Rating:
#1 (In Topic #1586)
Regular
DIYTinkerer is in the usergroup ‘Regular’
Hi,

I'm following example A  here https://gambas-buch.de…=k29:k29.3:k29.3.3:start

e.g.

Code (gambas)

  1. Public mMatrix1 As Matrix
  2. mMatrix1 = New Matrix(3, 3, True) '-- Columns, rows - complex coefficients (all zero)
  3. mMatrix2 = [[1, 1.4, 7 + 2i], [2, 2, 2], [-1, -2i, -3]] ' Inline-Matrix
  4. Dim Theta As Float = Pi / 2 '-- Radian measure of 90°
  5. Dim A As Matrix = [[Cos(Theta), -Sin(Theta)], [Sin(Theta), Cos(Theta)]]
  6.  

but get an error 'unknown Identifier: Matrix'

Matrix - as I understand it is part of the gb.gsl component https://gambaswiki.org/wiki/comp/gb.gsl

I'm assuming this component is loaded by default as I can't find in in Project|Properties|Components

Or is something else going on that I don't understand? (highly likely)
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

DIYTinkerer said

I'm assuming this component is loaded by default as I can't find in in Project|Properties|Components
You are assuming wrong. You always activate components yourself, unless you loaded the source code into IDE, then it should be activated.
You can't see them because, default, they are not shown as they are deprecated.
Image

(Click to enlarge)

Try, in project properties (tab components) clicking where arrow points to, and the mouse pointer is, to show them.  ;)

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
DIYTinkerer is in the usergroup ‘Regular’
 Thanks for the tip, however clicking show depreciated does nothing, no new components are shown????  Do you know what replaced it?
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

gbWilly said

DIYTinkerer said

I'm assuming this component is loaded by default as I can't find in in Project|Properties|Components
You are assuming wrong. You always activate components yourself, unless you loaded the source code into IDE, then it should be activated.
You can't see them because, default, they are not shown as they are deprecated.
depricated.png
Try, in project properties (tab components) clicking where arrow points to, and the mouse pointer is, to show them.  ;)

Are you sure gb.gsl is depreciated, because the wiki doesn't show it as being depreciated, only partially implemented.

Does gb.gsl show up in your project properties as being depreciated, because mine (old Gambas version) shows it as "not finished, but stable".

If it is actually depreciated, then the wiki needs updated. If the wiki is correct, then the project properties in the newer Gambas version is incorrect and needs corrected.   :?:

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

DIYTinkerer said

Thanks for the tip, however clicking show depreciated does nothing, no new components are shown????  Do you know what replaced it?

What version of Gambas are you using?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#6
Guru
BruceSteers is in the usergroup ‘Guru’
 Is it just greyed ?

They are grey if they are incomplete, unstable or just unfinished.
You should still be able to select it. Its not disabled b cause it's grey.

Aah no i see it is not greyed.
Online now: No Back to the top

Post

Posted
Rating:
#7
Guru
BruceSteers is in the usergroup ‘Guru’
Is it installed?
For apt packager try this..
sudo apt install gambas3-gb-gsl
Online now: No Back to the top

Post

Posted
Rating:
#8
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

DIYTinkerer said

Thanks for the tip, however clicking show depreciated does nothing, no new components are shown????  Do you know what replaced it?
Image

(Click to enlarge)

What Gambas are you running? And I mean from where, what repository, what version?
Send some system info output as well (menu ? -> System Information -> click Copy and Paste here), without info no clue what can be going on.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#9
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

BruceSteers said

Is it installed?
For apt packager try this..
sudo apt install gambas3-gb-gsl
Good one Bruce.
Deprecated components are not part of a default Gambas3 install and must be installed separately, before you can use them.

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#10
Regular
DIYTinkerer is in the usergroup ‘Regular’

BruceSteers said

Is it installed?
For apt packager try this..
sudo apt install gambas3-gb-gsl
That did the trick - Thanks Bruce and everyone else for their suggestions. :-)
Online now: No Back to the top

Post

Posted
Rating:
#11
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

gbWilly said

What Gambas are you running? And I mean from where, what repository, what version?
Send some system info output as well (menu ? -> System Information -> click Copy and Paste here), without info no clue what can be going on.

Your arrow is pointing to the gb.sdl component, not the gb.gsl component.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#12
Avatar
Administrator
gbWilly is in the usergroup ‘unknown’

sholzy said

Your arrow is pointing to the gb.sdl component, not the gb.gsl component.
Seems I need glasses… :lol:

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories


… there is always a Catch if things go wrong!
Online now: No Back to the top

Post

Posted
Rating:
#13
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

gbWilly said

sholzy said

Your arrow is pointing to the gb.sdl component, not the gb.gsl component.
Seems I need glasses… :lol:

Maybe you should run everything past Poly first. He does a great job of catching your mistakes.  :lol:

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top
1 guest and 0 members have just viewed this.